package com.java_foundation.huawei.Test_3;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @program: java_foundation
 * @description: 输入一个int型整数，按照从右向左的阅读顺序，返回一个不含重复数字的新的整数。
 * @author: xiongbangwen <Email>xiongbangwen@163.com</Email>
 * @create: 2020-08-02 21:46
 **/
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        ArrayList<Character> list = new ArrayList<Character>();
        char[] chars = str.toCharArray();
        for(int i=chars.length-1;i>=0;i--){
            if(!list.contains(chars[i])){
                list.add(chars[i]);
            }
        }
        for(Character c : list){
            System.out.print(c);
        }
    }
}


